package com.cxyzy.glidedemo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_pic.*

class GifActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_pic)
        loadImage()
    }

    private fun loadImage() {
        val url = "https://c-ssl.duitang.com/uploads/item/201703/17/20170317135641_dFL5w.gif"
        Glide.with(this)
                .load(url)
                .into(imageView)
    }
}
